package cn.jeefast.rest.controller;


import cn.jeefast.common.utils.R;
import cn.jeefast.rest.service.MbResBsaseInfoService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author theodo
 * @since 2020-01-11
 */
@RestController
@RequestMapping("/api")
public class MbResBsaseInfoController {
    @Autowired
    private MbResBsaseInfoService mbResBsaseInfoService;

    @RequestMapping("/resBsaseInfo/list")
    public R list(Long resId, Long projId){
        EntityWrapper ew = new EntityWrapper();
        ew.eq("res_id",resId);
        ew.eq("proj_id",projId);
        List list = mbResBsaseInfoService.selectList(ew);
        return R.ok().put("data",list.get(0));
    }
}
